package com.chenfan.process.controller;

import com.chenfan.ccp.common.result.R;
import com.chenfan.process.biz.ProcessBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 催办功能
 */
@Deprecated
@RestController
@RequestMapping("/reminder/approval")
public class ApprovalReminderController {

    @Autowired
    private ProcessBizService processBizService;
    /**
     * 根据审批流id提醒对应的审批人员
     * @param approvalId 审批流id
     */
    @Deprecated
    @GetMapping("{approvalId}")
    public R<Void> sendRemindMessage(@PathVariable Long approvalId) {
        processBizService.sendRemindMessage(approvalId);
        return R.ok();
    }

}
